using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Data;
using Exides.Common.ExceptionManagement;

namespace GAS.Common.Data
{
	public class ManagerReturnValue
	{
		private IList varUpdatedRows;
		//private StringCollection varConcurrencyErrors;
		private DataSet varChangedDataSet;
		private DataTable varChangedDataTable;
		private bool varCommited;
		private ExceptionsDataSet varExceptions;

		public IList UpdatedRows
		{
			get
			{
				return varUpdatedRows;
			}
			set
			{
				varUpdatedRows = value;
			}
		}

		//public StringCollection ConcurrencyErrors
		//{
		//    get
		//    {
		//        return varConcurrencyErrors;
		//    }
		//    set
		//    {
		//        varConcurrencyErrors = value;
		//    }
		//}

		public DataSet ChangedDataSet
		{
			get
			{
				return varChangedDataSet;
			}
			set
			{
				varChangedDataSet = value;
			}
		}

		public DataTable ChangedDataTable
		{
			get
			{
				return varChangedDataTable;
			}
			set
			{
				varChangedDataTable = value;
			}
		}

		public bool Commited
		{
			get
			{
				return varCommited;
			}
			set
			{
				varCommited = value;
			}
		}

		public ExceptionsDataSet Exceptions
		{
			get
			{
				return varExceptions;
			}
			set
			{
				varExceptions = value;
			}
		}

		public bool DataSetIsChanged
		{
			get
			{
				return (varChangedDataSet != null);
			}
		}

		public ManagerReturnValue()
		{
			varUpdatedRows = new ArrayList();

			varCommited = false;
			varExceptions = new ExceptionsDataSet();
		}
	}
}
